//
//  ToolControl.h
//  db
//
//  Created by 张育铭 on 2019/7/31.
//  Copyright © 2019 赢辉网络科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


@interface ToolControl : NSObject

/// Na 颜色  不允许改动
+ (UIView *)creatNaViewWithFrame:(CGRect)frame;


/**
 * 自定义UIButton  圆角按钮
 */
+ (UIButton *)creatRoundButtonWithFrame:(CGRect)frame Title:(NSString *)title Font:(CGFloat)font target:(id)target selector:(SEL)sel;

/**
 * 自定义UIButton  图片在左
 */
+ (UIButton *)creatButtonWithFrame:(CGRect)frame Title:(NSString *)title Font:(CGFloat)font image:(UIImage *)image target:(id)target selector:(SEL)sel;
/**
 * 自定义UIButton  图片在右
 */
+ (UIButton *)creatButtonRightWithFrame:(CGRect)frame Title:(NSString *)title Font:(CGFloat)font image:(UIImage *)image target:(id)target selector:(SEL)sel;
/**
 * 自定义UIButton  图片在上
 */
+ (UIButton *)creatButtonTopWithFrame:(CGRect)frame Title:(NSString *)title Font:(CGFloat)font image:(UIImage *)image target:(id)target selector:(SEL)sel;
/**
 * 自定义UILabel
 */
+ (UILabel *)creatTitleLabelWithFrame:(CGRect)frame theText:(NSString*)text theTextFont:(CGFloat)font;

/**
 * 自定义UILabel带图片
 */
+ (UILabel *)creaImagetTitleLabelWithFrame:(CGRect)frame theImageStr:(NSString*)image theImageWidth:(CGFloat)width theText:(NSString*)text;

/**
 * 自定义UITextField
 */
+ (UITextField *)creatTextFieldWithFrame:(CGRect)frame thePlaceText:(NSString*)text theTextFont:(CGFloat)font;


@end

